<?php
include("base.php");

class Controller_Skills extends Controller_Base {
    function index($id = null) {
		if ($id){
			$this->_view->setTemplate('templates' . DIRSEP . 'skill.tpl');
			$this->_view->setParams(array('skills' => $this->registry['db']->getSkills($id)));
		}
		else{
			$this->_view->setTemplate('templates' . DIRSEP . 'skills.tpl');
			$this->_view->setParams(array('skills' => $this->registry['db']->getSkills()));
		}
			
        $this->_view->render();
	}
}
?>